package com.veng.springbootdemo.rabbit;


import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = "directQueue")
public class RabbitReceiver {
    @RabbitHandler
    public void process(String receive){
        System.out.println("Receive1: " + receive);
    }
}
